//=============================================================================
/**
 * @file	run_ai.h
 * @brief	マラソンAI
 * @date	2008.08.19
 */
//=============================================================================

#ifndef	__RUN_AI_H__
#define	__RUN_AI_H__

#include "../../pokethlon.h"
#include "pkthln_run.h"
#include "../../pkthln_poke_act.h"
#include"pkthln_run_local.h"

typedef struct RUN_AI_CONT_tag * RUN_AI_CONT_PTR;

extern RUN_AI_CONT_PTR RunAI_Init(const int inHeapID, const int inNpcNum, const PKTHLN_GAME_TYPE inType);

extern void RunAI_SetupPokeInfo( RUN_AI_CONT_PTR ptr,
								 const u8 inIdx,
								 RUN_POKE *ioRunPoke );

extern void RunAI_SetUpObstInfo(RUN_AI_CONT_PTR ptr, const int *inObstData);

extern void RunAI_End(RUN_AI_CONT_PTR ptr);

extern u8 RunAI_Execute(PKTHLN_PTR work, RUN_AI_CONT_PTR ptr, const int inTime);

#endif	//__RUN_AI_H__